 var mongoose = require('mongoose');
 var db = mongoose.createConnection('localhost','shop');
 db.on('error',console.error.bind(console,'连接错误:'));
 db.once('open',function(){
      console.log("db connect success")
 });
 module.exports = db
